<?php

use Phinx\Migration\AbstractMigration;

class AddColumnExecutorTenantIdInTaskTable extends AbstractMigration
{

    public function up()
    {
        $this->table("task")
            ->addColumn("executor_tenant_id", "integer", [
                'null' => false,
                'default' => 0,
                'limit' => 11,
                'comment' => "执行人租户id"
            ])
            ->save();
    }

    public function down()
    {
        $this->table("task")->removeColumn("executor_tenant_id")->save();
    }
}
